Skip to content

fix: replacement text in bubble#2769

Merged
caio-pizzol merged 3 commits intomainfrom
artem/SD-2509
Apr 14, 2026
Merged

fix: replacement text in bubble#2769
caio-pizzol merged 3 commits intomainfrom
artem/SD-2509

Conversation

@artem-harbour
Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour commented Apr 10, 2026

Linear: SD-2509

@artem-harbour artem-harbour self-assigned this Apr 10, 2026
@linear
Copy link
Copy Markdown

linear bot commented Apr 10, 2026

@artem-harbour artem-harbour marked this pull request as ready for review April 10, 2026 10:36
@artem-harbour
Copy link
Copy Markdown
Contributor Author

@harbournick @caio-pizzol - please review and merge.

…509)

Add assertions for changeId, trackedChangeDisplayType, and deletedText
null-guards on pure-insertion path. Add Playwright spec for the
update-after-replace flow that triggered SD-2509.
…509)

The old name read as "deletion then insertion" but actually means "both
marks co-exist for the same change id, i.e. a replacement." Every call
site had a comment re-explaining this. The rename makes the intent
self-evident and retires those comments.
Copy link
Copy Markdown
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@artem-harbour good fix, verified in the dev app.

the bug was that after the first keystroke of a replacement, follow-up keystrokes lost the deleted text because only the insert mark came through in the transaction. your fix catches that correctly.

pushed a few additions to your branch:

  • extra assertions on your test + a guard that pure insertions don't accidentally get deleted text
  • a playwright spec that reproduces the full bug scenario end-to-end
  • renamed isDeletionInsertionisReplacement — the old name confused every reader, now it's obvious

@caio-pizzol caio-pizzol added this pull request to the merge queue Apr 14, 2026
Merged via the queue into main with commit 86b74fe Apr 14, 2026
49 of 52 checks passed
@caio-pizzol caio-pizzol deleted the artem/SD-2509 branch April 14, 2026 19:17
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 14, 2026

🎉 This PR is included in @superdoc-dev/react v1.2.0-next.12

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 14, 2026

🎉 This PR is included in vscode-ext v2.3.0-next.15

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 14, 2026

🎉 This PR is included in esign v2.3.0-next.15

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 14, 2026

🎉 This PR is included in template-builder v1.5.0-next.15

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 14, 2026

🎉 This PR is included in superdoc v1.26.0-next.15

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 14, 2026

🎉 This PR is included in superdoc-cli v0.7.0-next.16

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 14, 2026

🎉 This PR is included in superdoc-sdk v1.6.0-next.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants